/*
 * Copyright (c) 2018-2999 广州亚米信息科技有限公司 All rights reserved.
 *
 * https://www.gz-yami.com/
 *
 * 未经允许，不可做商业用途！
 *
 * 版权所有，侵权必究！
 */

package com.yami.shop.manager;

import com.yami.shop.bean.app.dto.ShopCartDto;
import com.yami.shop.bean.vo.ShopCartWithAmountVO;

import java.util.List;

/**
 * 默认的购物车进行组装时的操作
 * @author LGH
 */
public interface DiscountShopCartManager {

    /**
     * 计算满减，并组合购物车 + 购物车金额
     * @param shopCartWithAmount 购物车列表和金额信息
     */
    void calculateDiscountAndMakeUpShopCartAndAmount(ShopCartWithAmountVO shopCartWithAmount);

    /**
     * 计算满减，并重新组合购物车
     * @param shopCarts 购物项
     * @return void
     */
    List<ShopCartDto> calculateDiscountAndMakeUpShopCart(List<ShopCartDto> shopCarts);
}
